﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Caching.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        [OutputCache(Duration = 60, VaryByParam = "none")]
        public ActionResult Index()
        {
            ViewData["Message"] = "Now it's " + DateTime.Now.ToLongTimeString();
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
